package test.JUnitTest;

public class wife {
    private String name;
    private int age;
    private husband husband;

    public void Setwife(String name ,int age){
        this.name=name;
        this.age=age;
    }
    public void husband(husband husband){
        this.husband=husband;
    }
    public String gethusband(){
        return name+"的husband是"+husband.getName()+" "+husband.getAge();
    }
    public String getName(){
        return name;
    }
    public int getAge(){
        return age;
    }
}
